package com.guigu.controller.lq.service.impl;

import com.guigu.controller.lq.mapper.LqXldfMapper;
import com.guigu.controller.lq.pojo.LqXldf;
import com.guigu.controller.lq.service.LqXldfService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class LqXldfServiceimpl implements LqXldfService {
    @Autowired
    LqXldfMapper lqXldfMapper;
    public int xlfs(LqXldf lqXldf) {
        return lqXldfMapper.insert(lqXldf);
    }

    public int upxl(LqXldf lqXldf) {
        return lqXldfMapper.updateByPrimaryKey(lqXldf);
    }

    public List<LqXldf> findxls(String vipid) {
        return lqXldfMapper.findxfs(vipid);
    }

    public List<LqXldf> selfs(Integer xid) {
        return lqXldfMapper.selfs(xid);
    }
}
